]> dgit.raspbian.org Git - ostree.git/commit
tests: Fix "remote:branch" test to use ostree_parse_refspec
authorJoseph Marrero Corchado <jmarrero@redhat.com>
Mon, 29 Jun 2026 19:22:19 +0000 (15:22 -0400)
committerJoseph Marrero Corchado <jmarrero@redhat.com>
Mon, 29 Jun 2026 19:22:19 +0000 (15:22 -0400)
commit1b705ff3fca33bf221da0e2b991dfc4b017bb05c
tree8c75c2465ca055b0e72effa735b01bd3c97b49db
parented87f1cbd28fe07853ab097aa4c38f605e28531c
tests: Fix "remote:branch" test to use ostree_parse_refspec

ostree_validate_rev() validates bare ref names and does not accept
the "remote:ref" refspec syntax — the colon is not part of the
OSTREE_REF_REGEXP regex. The "remote:branch" form is a refspec,
which is parsed by ostree_parse_refspec().

Replace the incorrect ostree_validate_rev() call with
ostree_parse_refspec() and verify the parsed remote and ref
components, preserving the original test intent.

Fixes: ac10a27d ("pull: Fix GLib assertion crash on invalid UTF-8 ref names")
tests/test-validate-utf8.c